import Home from '@/views/Home.vue'
import My from '@/views/My.vue'
import Login from '@/views/Login.vue'
import MyOrders from '@/views/MyOrders.vue'

import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path: '/',redirect:"/home"},
    {path: '/home',component: Home,},
    {path:'/my',component:My},
    {path: '/login', component: Login},
    {path: '/my-orders', component: MyOrders},
  ],
})

export default router
